package com.dc.excel.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.dc.excel.model.WorkflowWaterCleanModel;

import java.util.ArrayList;
import java.util.List;

public class WorkflowWaterCleanExcelListener extends AnalysisEventListener<WorkflowWaterCleanModel> {

    private List<WorkflowWaterCleanModel> resultList = new ArrayList<WorkflowWaterCleanModel>();

    @Override
    public void invoke(WorkflowWaterCleanModel workflowWaterCleanModel, AnalysisContext analysisContext) {
        resultList.add(workflowWaterCleanModel);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
    }

    public List<WorkflowWaterCleanModel> getResultList() {
        return resultList;
    }
}
